package com.it.mydream.Service.imp;

import com.it.mydream.Bean.User;
import com.it.mydream.Dao.UserDao;
import com.it.mydream.Service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceImp implements LoginService {

    @Autowired
    private UserDao userDao;

    @Override
    public User CheckUser(User user) {
        return userDao.CheckUser(user);
    }

    @Override
    public void SignUser(User user) {
        userDao.InsertUser(user);
    }

    public void insertUserProFile(User user){
        userDao.InsertUserProFile(user);
    }

    public User getUserProFile(User user){
        return userDao.getUserProFile(user);
    }
    @Override
    public void updateUserProFile(User user) {
        userDao.updateUserProFile(user);
    }

    @Override
    public List<User> getUserList() {
        return userDao.getUserList();
    }

    @Override
    public void insertUserStatus(User user) {
        userDao.InsertUserStatus(user);
    }

    @Override
    public void updateUserStatus(User user) {
        userDao.updateUserStatus(user);
    }

}
